import time
from public.action import *
from public.business import *
from public.testData import *
from public.tools import*
testCase16='DBshop016_删除侧边设置'
firefox=openBrowser(urlAdmin)
DBshopLoginAdmin(firefox)
DBshopEnterMenu3(firefox,'商品管理','管理分类','前台侧边设置')# 进入前台侧边设置
firefox.find_element_by_link_text('删除').click()#点击删除

try:
    firefox.find_element_by_xpath('//table/tbody/tr[1]/td[1]').text=='网站很好看'
    writeLog("%s 测试不通过" % testCase16)
    getPhoto(firefox)
except:
    writeLog("%s 测试通过" % testCase16)

firefox.quit()

